<template>
  <form>
    <slot></slot>
  </form>
</template>

<script>
export default {
  name:'KForm',
  provide() {
    return {
      form: this // 将组件实例作为提供者，⼦代组件可⽅便获取
    };
  },
  props: {
    model: { type: Object, required: true },
    rules: { type: Object }
  }
};
</script>

<style>
</style>